04. Operations

JAVA C2 L3 04 Operations

GraphQL offers operations on data like queries and mutations.

Queries

A query allows for the retrieving of data. Each query will have a specific object that it returns and based on the object returned, you can add or remove fields to match the exact data you need to fit your specific use case.

Mutations

GraphQL has the ability to update the data stored on the server, by means of mutations. Mutations, such as, create, update, or delete will change the data, unlike a query.

Identify THREE operations that mutate data.

SOLUTION:
  • Deleting
  • Creating
  • Updating